package com.learn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.learn.bean.Product;
import com.learn.mapper.ProductMapper;

@SpringBootApplication
public class App {
    public static void main( String[] args ){
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
//        ProductMapper productMapper = context.getBean(ProductMapper.class);
//        Product product = new Product();
//        product.setPname("Java为服务架构");
//        product.setPrice(10.08);
//        product.setType("书籍");
//        productMapper.add(product);
//        context.close();
    }
}
